package com.example.hello.controller;

import com.example.common.utils.result.ResultBO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *
 * </p>
 *
 * @author 12071
 * @date 2022/7/26 14:29
 */
@Slf4j
@RestController
public class IndexController {

    @GetMapping("/hello")
    public ResultBO hello(){
        return ResultBO.ok("hello");
    }

    @GetMapping("/error")
    public ResultBO error(){
        return ResultBO.error("eeee");
    }

    @GetMapping("/index")
    public ResultBO main(){
        return ResultBO.ok("main");
    }

}
